<?php

/**
 * @Author: 杰少Pakey
 * @Email : admin@ptcms.com
 * @File  : soft.php
 */
class SoftModel extends Model
{
	public function parseInfo($info)
	{
		$info['downlinkurl']=@unserialize($info['downlinkurl']);
		if (empty($info['downlinkurl'])) $info['downlinkurl']=array(array('type'=>'other','url'=>''));
        if ($info['attachment']!=''){
            $info['downlinkurl']=array_merge(array(array('type'=>'ptcms','url'=>$info['attachment'])),$info['downlinkurl']);
        }
		return $info;
	}
}